﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using Newtonsoft.Json;

namespace Smugmug
{
    [JsonObject]
    public class ShareGroup : IIdentifiable<int>
    {
        [XmlAttribute("id"), JsonProperty("id")]
        public int Id { get; set; }
        [XmlAttribute]
        public string Tag { get; set; }
        [XmlAttribute]
        public int AlbumCount { get; set; }
        [XmlAttribute]
        public string Description { get; set; }
        [XmlAttribute]
        public string Name { get; set; }
        [XmlAttribute("URL"), JsonProperty("URL")]
        public string Url { get; set; }

        public AlbumCollection Albums { get; set; } //heavy response only
    }

    [XmlType("ShareGroups"), JsonObject]
    public class ShareGroupCollection : List<ShareGroup>
    {
    }
}